//
//  ActionSheet.h
//  LotteryClient
//
//  Created by Sunyon 14-4-11.
//  Copyright (c) 2014年 CTTC. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ActionSheet : NSObject<UIActionSheetDelegate>


- (id) initWithTitle: (NSString *) title;

- (void) setCancelButtonWithTitle: (NSString *) title block: (void (^)()) block;
- (void) addButtonWithTitle: (NSString *) title block: (void (^)()) block;

- (void) showInView: (UIView *) view;

@end


@protocol IconActionSheetDelegate <NSObject>

- (void)didClickOnImageIndex:(NSInteger *)imageIndex;

@optional

- (void)didClickOnCancelButton;
@end

@interface IconActionSheet : UIView

@property(nonatomic,readonly) UILabel *titleLabel;
@property (nonatomic,readonly) UIView *backGroundView;

- (id)initWithTitle:(NSString *)title delegate:(id<IconActionSheetDelegate>)delegate cancelButtonTitle:(NSString *)cancelButtonTitle ShareButtonTitles:(NSArray *)shareButtonTitlesArray withShareButtonImagesName:(NSArray *)shareButtonImagesNameArray;
- (void)showInView:(UIView *)view;

@end

